package com.ruoyi.exam.service;

import java.util.List;
import com.ruoyi.exam.domain.ExamAnswer;

/**
 * 考试答案Service接口
 * 
 * @author ba7lgj
 * @date 2024-04-03
 */
public interface IExamAnswerService 
{
    /**
     * 查询考试答案
     * 
     * @param answerId 考试答案主键
     * @return 考试答案
     */
    public ExamAnswer selectExamAnswerByAnswerId(Long answerId);

    /**
     * 查询考试答案列表
     * 
     * @param examAnswer 考试答案
     * @return 考试答案集合
     */
    public List<ExamAnswer> selectExamAnswerList(ExamAnswer examAnswer);

    /**
     * 新增考试答案
     * 
     * @param examAnswer 考试答案
     * @return 结果
     */
    public int insertExamAnswer(ExamAnswer examAnswer);

    /**
     * 修改考试答案
     * 
     * @param examAnswer 考试答案
     * @return 结果
     */
    public int updateExamAnswer(ExamAnswer examAnswer);

    /**
     * 批量删除考试答案
     * 
     * @param answerIds 需要删除的考试答案主键集合
     * @return 结果
     */
    public int deleteExamAnswerByAnswerIds(Long[] answerIds);

    /**
     * 删除考试答案信息
     * 
     * @param answerId 考试答案主键
     * @return 结果
     */
    public int deleteExamAnswerByAnswerId(Long answerId);
}
